export const apiRoutes = [
  {
    path: '/ProductAdmin',
    component: 'Layout',
    redirect: '/ProductAdmin/kucun',
    name: 'ProductAdmin',
    title: '商品管理',
    icon: 'iconfont icon-shebei1',
    type: 1,
    children: [
      {
        path: 'spku',
        component: 'ProductAdmin/spku/index',
        name: 'kucuns',
        title: '商品库',
        type: 1,
        children: [
          {
            path: '',
            component: '',
            name: 'addgood',
            title: '新增',
            type: 2,
          },
          {
            path: '',
            component: '',
            name: 'delgood',
            title: '删除',
            type: 2,
          }
        ]
      },
      // {
      //   path: 'temp',
      //   component: 'ProductAdmin/temp/index',
      //   name: 'temp',
      //   title: '商品模板库',
      // },
      {
        path: 'baseset',
        component: 'ProductAdmin/baseset/index',
        name: 'baseset',
        title: '基础设置',
        type: 1,
      },

    ]
  },
  {
    path: '/SharedOrders',
    component: 'Layout',
    redirect: '/SharedOrders/orderadmin',
    name: 'SharedOrders',
    title: '订单管理',
    icon: 'iconfont icon-shebei1',
    type: 1,
    children: [
      {
        path: 'orderadmin',
        component: 'SharedOrders/orderadmin/index',
        name: 'orderadmin',
        title: '订单管理',

        type: 1,
        children: [
          {
            path: '',
            component: '',
            name: 'add',
            title: '测试',
            type: 2,
          },
          {
            path: '',
            component: '',
            name: 'del',
            title: '测试2',
            type: 2,
          }
        ]

      },
      // {
      //   path: 'productadmin',
      //   component: 'SharedOrders/productadmin/index',
      //   name: 'productadmin',
      //   title: '订单商品管理',
      // },
    ]
  },
  {
    path: '/SaleOrder',
    component: 'Layout',
    redirect: '/SaleOrder/orderadmin',
    name: 'SaleOrder',
    title: '销售订单',
    icon: 'iconfont icon-shebei1',
    children:[
      {
        path: 'orderadmin',
        component: 'SaleOrder/orderadmin/index',
        name: 'orderadmin',
        title: '订单管理',
      },
      {
        path: 'newproductadmin',
        component: 'SaleOrder/newproductadmin/index',
        name: 'newproductadmin',
        title: '新品商品管理',
      },
    ]
  },

  {
    path: '/AccessoriesOrder',
    component: 'Layout',
    redirect: '/AccessoriesOrder/orderadmin',
    name: 'AccessoriesOrder',
    title: '配件订单订单',
    icon: 'iconfont icon-shebei1',
    children:[
      {
        path: 'orderadmin',
        component: 'AccessoriesOrder/orderadmin/index',
        name: 'orderadmin',
        title: '订单管理',
      },
      {
        path: 'accessadmin',
        component: 'AccessoriesOrder/accessadmin/index',
        name: 'accessadmin',
        title: '配件商品管理',
      },
    ]
  },


  {
    path: '/SecondhandTransaction',
    component: 'Layout',
    redirect: '/SecondhandTransaction/orderadmin',
    name: 'SecondhandTransaction',
    title: '二手交易',
    icon: 'iconfont icon-shebei1',
    children:[
      {
        path: 'secondorder',
        component: 'SecondhandTransaction/secondorder/index',
        name: 'secondorder',
        title: '二手交易订单管理',
      },
      {
        path: 'secondproduct',
        component: 'SecondhandTransaction/secondproduct/index',
        name: 'secondproduct',
        title: '二手商品管理',
      },
    ]
  },


  {
    path: '/OldChangeNew',
    component: 'Layout',
    redirect: '/OldChangeNew/orderadmin',
    name: 'OldChangeNew',
    title: '以旧换新',
    icon: 'iconfont icon-shebei1',
    type: 1,

    children: [
      {
        path: 'OldChangeNewIndex',
        component: 'OldChangeNew/index',
        name: 'OldChangeNewIndex',
        title: '以旧换新',
        type: 1,

      },
    ]
  },

  {
    path: '/ShareDistribution',
    component: 'Layout',
    redirect: '/ShareDistribution/orderadmin',
    name: 'ShareDistributionAdmin',
    title: '分享分销',
    icon: 'iconfont icon-shebei1',
    type: 1,

    children: [
      {
        path: 'ShareDistributionIndex',
        component: 'ShareDistribution/index',
        name: 'ShareDistribution',
        title: '分享分销',
        type: 1,

      },
    ]
  },


  {
    path: '/SharedCommodity',
    component: 'Layout',
    redirect: '/SharedCommodity/kucun',
    name: 'SharedCommodity',
    title: '商品仓库管理',
    icon: 'iconfont icon-shebei1',
    type: 1,

    children: [
      {
        path: 'kucun',
        component: 'SharedCommodity/kucun/index',
        name: 'kucun',
        title: '库存管理',
        type: 1,

      },
      {
        path: 'ruku',
        component: 'SharedCommodity/ruku/index',
        name: 'ruku',
        title: '入库管理',
        type: 1,

      },
      {
        path: 'chuku',
        component: 'SharedCommodity/chuku/index',
        name: 'chuku',
        title: '出库管理',
        type: 1,

      },
      {
        path: 'tiaojie',
        component: 'SharedCommodity/tiaojie/index',
        name: 'tiaojie',
        title: '调节管理',
        type: 1,

      },
    ]
  },

  {
    path: '/NewProducts',
    component: 'Layout',
    redirect: '/NewProducts/kucun',
    name: 'NewProducts',
    title: '新品商品仓库管理',
    icon: 'iconfont icon-shebei1',
    children:[
      {
        path: 'kucun',
        component: 'NewProducts/kucun/index',
        name: 'kucunnew',
        title: '库存管理',
      },
      {
        path: 'ruku',
        component: 'NewProducts/ruku/index',
        name: 'rukunew',
        title: '入库管理',
      },
      {
        path: 'chuku',
        component: 'NewProducts/chuku/index',
        name: 'chukunew',
        title: '出库管理',
      },
      {
        path: 'tiaojie',
        component: 'NewProducts/tiaojie/index',
        name: 'tiaojienew',
        title: '调节管理',
      },
    ]
  },



  {
    path: '/AccessoryProducts',
    component: 'Layout',
    redirect: '/AccessoryProducts/kucun',
    name: 'AccessoryProducts',
    title: '配件商品仓库管理',
    icon: 'iconfont icon-shebei1',
    children:[
      {
        path: 'kucun',
        component: 'AccessoryProducts/kucun/index',
        name: 'kucun',
        title: '库存管理',
      },
      {
        path: 'ruku',
        component: 'AccessoryProducts/ruku/index',
        name: 'ruku',
        title: '入库管理',
      },
      {
        path: 'chuku',
        component: 'AccessoryProducts/chuku/index',
        name: 'chuku',
        title: '出库管理',
      },
      {
        path: 'tiaojie',
        component: 'AccessoryProducts/tiaojie/index',
        name: 'tiaojie',
        title: '调节管理',
      },
    ]
  },


  {
    path: '/UsedProducts',
    component: 'Layout',
    redirect: '/UsedProducts/kucun',
    name: 'UsedProducts',
    title: '二手商品仓库管理',
    icon: 'iconfont icon-shebei1',
    children:[
      {
        path: 'kucun',
        component: 'UsedProducts/kucun/index',
        name: 'kucun',
        title: '库存管理',
      },
      {
        path: 'ruku',
        component: 'UsedProducts/ruku/index',
        name: 'ruku',
        title: '入库管理',
      },
      {
        path: 'chuku',
        component: 'UsedProducts/chuku/index',
        name: 'chuku',
        title: '出库管理',
      },
      {
        path: 'tiaojie',
        component: 'UsedProducts/tiaojie/index',
        name: 'tiaojie',
        title: '调节管理',
      },
    ]
  },





  {
    path: '/BaseSet',
    component: 'Layout',
    redirect: '/BaseSet/kucun',
    name: 'BaseSet',
    title: '基础设置',
    icon: 'iconfont icon-shebei1',
    type: 1,

    children: [
      {
        path: 'account',
        component: 'BaseSet/account/index',
        name: 'account',
        title: '子账号管理',
        type: 1,

      },
      {
        path: 'wuliu',
        component: 'BaseSet/wuliu/index',
        name: 'wuliu',
        title: '物流档案',
        type: 1,

      },
      {
        path: 'print',
        component: 'BaseSet/print/index',
        name: 'print',
        title: '打印管理',
        type: 1,

      },

    ]
  },


  {
    path: '/system',
    component: 'Layout',
    redirect: '/system/user',
    name: 'system',
    title: '系统管理',
    icon: 'iconfont icon-xitong',
    type: 1,


    children: [
      {
        path: 'user',
        component: 'system/user/index',
        name: 'user',
        title: '系统用户管理',
        type: 1,
      },
      {
        path: 'orgUser',
        component: 'system/org/index',
        name: 'orgUser',
        title: '商家用户管理',
        type: 1,
      },
      {
        path: 'role',
        component: 'system/role/index',
        name: 'role',
        title: '角色管理',
        type: 1,
      },
      {
        path: 'menu',
        component: 'system/menu/index',
        name: 'menu',
        title: '菜单管理',
        type: 1,
      },
    ]
  },



  { path: '*', redirect: '/404', hidden: true,type:1 }
]